$('#video').ready(function () {
            //var id = localStorage.getItem("user_id");
            var json = {
                "id": 1
            //        "token": localStorage.getItem("token"),
            //        "user_id": localStorage.getItem("userid"),
            //        "start": 0,
            //       "range": 10
                };
            $.ajax({
                url:"/club_course/showCourseDetial",
                type:"POST",
                datatype:'json',
                contentType: 'application/json',
                data: JSON.stringify(json),
                success: function(data)
                {
                    code = data['success'];
                    if(code != true)
                    {
                        alert(data);
                        alert("读取信息出错！");
                    }
                    else
                    {
                        $("#main_content").append('<video url="192.168.1.0">' + '</video>');
                    }
                }
            });
        })

    $('#button-like').mousedown(function(){
        $("#button-like").attr("class","button-like-onclick");
    })

    $('#button-like').mouseup(function(){
        $("#button-like").attr("class","button-like");
    })

    $('#button-dislike').mousedown(function(){
        $("#button-dislike").attr("class","button-dislike-onclick");
    })
    
    $('#button-dislike').mouseup(function(){
        $("#button-dislike").attr("class","button-dislike");
    })
